package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 朱梦晨
 * @Description: 导出记录Enum
 * @date 2024-07-25
 */
@AllArgsConstructor
@Getter
public enum ExportTypeStatusEnum {

    EXPORT_STATUS_FAIL(0, "导出失败"),
    EXPORT_STATUS_SUCCESS(1, "导出成功"),
    EXPORT_STATUS_IN(2, "导出中");


    @EnumValue
    private int code;

    private String name;

    public static ExportTypeStatusEnum getName(Integer code) {
        ExportTypeStatusEnum[] values = values();
        for (ExportTypeStatusEnum v : values) {
            if (v.getCode()==code) {
                return v;
            }
        }
        return null;
    }

}
